package com.pro.core.util;

import com.pro.db.domain.ProAdmin;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

public class WebUtils {

    public static ProAdmin getCurrentUser(){
        // 新零售这里将品牌商用作不同的商户。
        Subject currentUser = SecurityUtils.getSubject();
        ProAdmin admin = (ProAdmin) currentUser.getPrincipal();
        return admin;
    }
}
